import copy
from typing import List


class Solution:

    @staticmethod
    def dominantIndex(nums: List[int]) -> int:
        if len(nums) == 1:
            return 0
        rnums = copy.copy(nums)
        nums.sort()
        if nums[-2] * 2 > nums[-1]:
            return -1
        else:
            return rnums.index(nums[-1])


if __name__ == '__main__':
    nums = [1]

    index = Solution.dominantIndex(nums)

    print(index)
